package com.cimu.provider.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.cimu.provider.entity.User;
import com.cimu.provider.service.OtherRegistryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * Title: OtherRegistryServiceImpl
 * Copyright: Copyright (c) 2017
 *
 * date 2018年12月07日 09:56
 */
@Service(interfaceClass = OtherRegistryService.class , registry = {"test1"})
@Component
@Slf4j
public class OtherRegistryServiceImpl implements OtherRegistryService {

    @Override
    public User test() {
        log.info("=========其他注册中心的方法===============");
        User user = new User();
        user.setId(1L);
        return user;
    }

}
